package io.zhifei.modules.sys.system.dao.customer;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.zhifei.modules.sys.system.entity.customer.CustomerFollowEntity;
import io.zhifei.modules.sys.system.form.customer.CustomerFollowCalendarResult;
import io.zhifei.modules.sys.system.form.customer.CustomerFollowParam;
import io.zhifei.modules.sys.system.form.customer.CustomerFollowResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 客户跟进 Mapper 接口
 * </p>
 *
 * @author duke
 * @since 2020-12-10
 */
@Mapper
public interface CustomerFollowDao extends BaseMapper<CustomerFollowEntity> {

    /**
     * 获取客户跟进的分页列表
     * @param page 分页参数
     * @param param 查询参数
     * @return
     */
    IPage<CustomerFollowResult> getPageList(Page page, @Param("param") CustomerFollowParam param);

    /**
     * 获取跟进日历列表
     * @param param 查询参数，时间
     * @return
     */
    List<CustomerFollowCalendarResult> getFollowCalendarList(@Param("param") CustomerFollowParam param);
}
